﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ServidorCobroTiempoReal
{
    class Tarifa
    {
        private int tarifa;

        public Tarifa(int tar)
        {
            tarifa = tar;
        }

        public int ConsumoEnPlata(int km)
        {
            return km * tarifa;
        }
    }
}
